#ifndef PLAYLISTDISPLAY_H
#define PLAYLISTDISPLAY_H

#include <QDir>
#include <QMutex>
#include <QThread>
#include <QWaitCondition>
#include <Maestro/mcplugins.h>
#include <Maestro/database.h>
#include <QSqlQuery>
#include <QSqlQueryModel>
#include <phonon>
#include <QWidget>
#include "mediachecker.h"
#include "fileselector.h"
#include "keycontrollablemenu.h"

namespace Ui {
    class PlaylistDisplay;
}

class PlaylistDisplay : public KeyControllableMenu {
    Q_OBJECT
public:
    PlaylistDisplay(QWidget *parent = 0, FileSelector *fs = 0);
    ~PlaylistDisplay();
public slots:
    void buttonSelected();
    void reloadPlaylists();
    void reshowComponents();
    void buttonRightClicked();
private slots:
    void buttonSelected(Button * button);

protected:
    void changeEvent(QEvent *e);

private:
    Ui::PlaylistDisplay *ui;
    FileSelector *fs;
    PopupMenu * rightclick;
    Button * removePlaylistButton;
    Button * cancelButton;
};

#endif // PLAYLISTDISPLAY_H
